home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shu194st.zoo / shellutils-1.9.4 / lib / Makefile
Encoding:
Makefile  |  1994-03-16  |  2.9 KB  |  104 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU shell utilities.
  3. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = .
  22. VPATH = .
  23.  
  24. CC = gcc
  25. AR = ar
  26. RANLIB = ranlib
  27. DEFS = -DCONFIG_BROKETS -DHAVE_CONFIG_H
  28. CFLAGS = -O2 -mpcrel -fomit-frame-pointer
  29. YACC = bison -y
  30.  
  31. SOURCES = regex.c getdate.y basename.c error.c stripslash.c xmalloc.c \
  32. xstrdup.c full-write.c putenv.c getopt.c getopt1.c getugroups.c \
  33. posixtm.y strftime.c gethostname.c getusershell.c memcmp.c mktime.c stime.c \
  34. strcspn.c strstr.c strtol.c strtoul.c strtod.c alloca.c
  35.  
  36. OBJECTS = regex.o getdate.o basename.o error.o stripslash.o xmalloc.o \
  37. xstrdup.o full-write.o putenv.o getopt.o getopt1.o getugroups.o \
  38. posixtm.o strftime.o  getusershell.o 
  39.  
  40. DISTFILES = Makefile.in getopt.h regex.h $(SOURCES)
  41.  
  42. all: libshu.a
  43.  
  44. .c.o:
  45.     $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
  46.  
  47. install: all
  48.  
  49. uninstall:
  50.  
  51. TAGS: $(SOURCES)
  52.     etags $(SOURCES)
  53.  
  54. check:
  55.  
  56. clean:
  57.     rm -f *.a *.o
  58.  
  59. mostlyclean: clean
  60.  
  61. distclean: clean
  62.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  63.  
  64. realclean: distclean
  65.     rm -f TAGS
  66.  
  67. dist:
  68.     for file in $(DISTFILES); do \
  69.       ln $$file ../`cat ../.fname`/lib \
  70.         || cp -p $$file ../`cat ../.fname`/lib; \
  71.     done
  72.  
  73. libshu.a: $(OBJECTS)
  74.     rm -f $@
  75.     $(AR) cr $@ $(OBJECTS)
  76.     -$(RANLIB) $@
  77.  
  78. # Since this directory contains two parsers, we have to be careful to avoid
  79. # running two $(YACC)s during parallel makes.  See below.
  80. getdate.c: getdate.y
  81.     @echo expect 10 shift/reduce conflicts
  82.     $(YACC) $(srcdir)/getdate.y
  83.     mv y.tab.c getdate.c
  84.  
  85. # Make the rename atomic, in case sed is interrupted and later rerun.
  86. # The artificial dependency on getdate.c keeps the two parsers from being
  87. # built in parallel.  Enforcing this little bit of sequentiality lets
  88. # everyone (even those without bison) still run mostly parallel builds.
  89. posixtm.c: posixtm.y getdate.c
  90.     $(YACC) $(srcdir)/posixtm.y
  91.     mv y.tab.c posixtm.tab.c
  92.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  93.     mv tposixtm.c posixtm.c
  94.     rm -f posixtm.tab.c
  95.  
  96. getopt1.o: getopt.h
  97. regex.o: regex.h
  98.  
  99. $(OBJECTS): ../config.h
  100.  
  101. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  102. # Otherwise a system limit (for SysV at least) may be exceeded.
  103. .NOEXPORT:
  104.